package user.Service;

import common.model.Propaganda;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import user.repository.PropagandaRepository;

import java.util.List;

@Service
public class PropagandaService {

    @Autowired
    private PropagandaRepository propagandaRepository;

    public List<Propaganda> getUserPropaganda(String type) {
        return propagandaRepository.findByType(type);
    }
}